//
//  DECXCommitPayOrderViewController.m
//  DECXInStore
//
//  Created by 李坤 on 2019/12/16.
//  Copyright © 2019 程强. All rights reserved.
//

#import "DECXCommitPayOrderViewController.h"
#import "DECXWarehouseChargeManager.h"

@interface DECXCommitPayOrderViewController ()
@property (strong, nonatomic) DECXWarehouseChargeManager *manager;
@property (weak, nonatomic) IBOutlet UITextField *numTxf;
@end

@implementation DECXCommitPayOrderViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.manager = [DECXWarehouseChargeManager new];
}

- (IBAction)payClick:(id)sender
{
    [self createPayOrder];
}
- (void)createPayOrder
{
    MyUser;
    weak_Self(self);
    [[self.manager createPayOrderWithUid:user.userid orderID:self.oid count:@"1" driver:@""]subscribeNext:^(id x) {
        
    } error:^(NSError *error) {
        NSString *msg = error.userInfo[@"msg"];
        [weakSelf showMessageHUD:msg delayHide:1.0];
    } completed:^{
        
    }];
}
@end
